<?php

namespace App\Http\Controllers\Counter;

use App\Helper\ApiResponseHelper;
use App\Http\Controllers\Controller;
use App\Models\Table;
use Illuminate\Http\Request;

class TableOrderController extends Controller
{
    public function pause(Table $table)
    {
        $table->pause();

        return ApiResponseHelper::json([]);
    }

    public function unpause(Table $table)
    {
        $table->unpause();

        return ApiResponseHelper::json([]);
    }
}
